﻿using System.Linq;
using Service.Contracts.DataContracts;

namespace Event.Service
{
    public class EventHandler
    {
        public void ProcessMessages()
        {
            if (!EventExists())
                return;       
            
            var message = new SmsMessage();
        }

        private static bool EventExists()
        {
            var repository = new FakeRepository();
            
            return repository.FetchMessages().Any(m => m.Status == "Queued");
        }
    }
}